#include <iostream>
using std::cout;
using std::endl;


double sum(){
    return 0;
}

template <class T1, class ...Args>
double sum(T1 x, Args ...args){
    return x + sum(args...);
}

void test0(){
    cout << sum(6.8,8,4.5,9.2,33) << endl;

    //T1 sum(T1 x, Args ...args){
    //10 + sum()
    //8 + 10
    //9.7 + 18
    //27.7
    //8 + 27.7
    //6.7 + 35
    //5 + 41.7
    //1.4 + 46
    cout << sum(1.4,5,6.7,8,9.7,8,10) << endl;
}

int main(void){
    test0();
    return 0;
}


